/* -------------------------
 * Denise Pollock
 * Homework 3
 * 7/8/14
 * testing fullDeckCount function
 * -------------------------
 */

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main() 
{
	struct gameState state;
	int numPlayer = 2;
	int p, r, i, test;
	int seed = 1000;
	int k[10] = {adventurer, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall};

	memset(&state, 23, sizeof(struct gameState));
	r = initializeGame(numPlayer, k, seed, &state);

	printf("Testing isGameOver\n");
	
	state.supplyCount[province] = 0;
	test = isGameOver(&state);
	assert(test == 1);
	
	
	state.supplyCount[4] = 0;
	state.supplyCount[8] = 0;
	state.supplyCount[6] = 0;
	
	test = isGameOver(&state);
	assert(test == 1);
	
	for (i = 0; i < 25; i++)
	{
		state.supplyCount[i] = 1;
	}
	test = isGameOver(&state);
	assert(test == 0);
		
	
	printf("All tests passed\n");
	
	
  

}
